#ifndef __STREAM_H__
#define __STREAM_H__

include <fstream>

class BinaryFileStream
{
public:
	bool Open();
	int Read(char* pBuffer, int nSize);
	int Write(char* pBuffer, int nSize); 
	int Seek(int nSize);
	void Close();
public:
	std::string m_strFilename;
private:
	std::fstream m_fs;
};

class MemStream
{
public:
	bool Open();
	int Read(char* pBuffer, int nSize);
	int Write(char* pBuffer, int nSize); 
	int Seek(int nSize);
	void Close();
public:
	char* m_pBuffers;
private:
	char* m_pCurrent;
};
#endif